package com.nbicc.anon.hot.controller;

import com.nbicc.anon.hot.service.IAnonHotNewsService;
import com.nbicc.common.RequestPageObj;
import com.nbicc.common.ResponseObj;
import com.nbicc.news.service.INewsInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;

@Api(value = "新闻描述热门(匿名)" , description = "获取点击数最多的新闻列表")
@RestController
@RequestMapping(value = "/anon/hot/news/info")
public class AnonHotNewsController {

    @Resource(name = "AnonHotNewsServiceImpl")
    private IAnonHotNewsService anonHotNewsService;

    @ApiOperation(value = "按条件(分页等) 新闻描述", notes = "只有页长有用")
    @PostMapping("/find")
    @ResponseBody
    public ResponseObj find(@RequestBody RequestPageObj<Map<String,Object>> requestPageObj){
        ResponseObj responseObj = anonHotNewsService.find(requestPageObj);
        return responseObj;
    }

}
